/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.portlet.donggoi.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services.
 *
 * @author    Thi
 * @generated
 */
public class quytrinhDGSoap implements Serializable {
	public static quytrinhDGSoap toSoapModel(quytrinhDG model) {
		quytrinhDGSoap soapModel = new quytrinhDGSoap();

		soapModel.setMaQuyTrinhDG(model.getMaQuyTrinhDG());
		soapModel.setTenQuyTrinh(model.getTenQuyTrinh());

		return soapModel;
	}

	public static quytrinhDGSoap[] toSoapModels(quytrinhDG[] models) {
		quytrinhDGSoap[] soapModels = new quytrinhDGSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static quytrinhDGSoap[][] toSoapModels(quytrinhDG[][] models) {
		quytrinhDGSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new quytrinhDGSoap[models.length][models[0].length];
		}
		else {
			soapModels = new quytrinhDGSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static quytrinhDGSoap[] toSoapModels(List<quytrinhDG> models) {
		List<quytrinhDGSoap> soapModels = new ArrayList<quytrinhDGSoap>(models.size());

		for (quytrinhDG model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new quytrinhDGSoap[soapModels.size()]);
	}

	public quytrinhDGSoap() {
	}

	public String getPrimaryKey() {
		return _maQuyTrinhDG;
	}

	public void setPrimaryKey(String pk) {
		setMaQuyTrinhDG(pk);
	}

	public String getMaQuyTrinhDG() {
		return _maQuyTrinhDG;
	}

	public void setMaQuyTrinhDG(String maQuyTrinhDG) {
		_maQuyTrinhDG = maQuyTrinhDG;
	}

	public String getTenQuyTrinh() {
		return _tenQuyTrinh;
	}

	public void setTenQuyTrinh(String tenQuyTrinh) {
		_tenQuyTrinh = tenQuyTrinh;
	}

	private String _maQuyTrinhDG;
	private String _tenQuyTrinh;
}